[ ] 
[+] //header
	[ ] 
	[ ] // copyright note
	[ ] 
	[ ] // modification history ( most recent first )
	[ ] // mm/dd/yy    who    what
	[ ] // 06/15/12    ps     created file; added CountSubstr function.
	[ ] 
	[ ] // product:  N/A
	[ ] // purpose:  includes generic functions and testcases.
	[ ] // testspec: N/A
	[ ] // database: N/A
[ ] 
[+] //dependencies
	[ ] 
	[ ] // N/A
[ ] 
[+] //classes
	[ ] 
[ ] 
[+] //functions
	[ ] 
	[+] //strings manipulations
		[ ] 
		[+] INTEGER CountSubstr( STRING sStr, STRING sPattern )
			[ ] // function name:  CountSubstr( STRING sStr, STRING sPattern )
			[ ] // purpose:        
			[ ] // preconditions:  N/A
			[ ] // postconditions: N/A
			[ ] // parameters:     sStr     - String to search pattern in. STRING
			[ ] //                 sPattern - Pattern to search in string. STRING
			[ ] // return value:   Number of occurrence sPattern in sStr. STRING
			[ ] 
			[ ] return ( Len( sStr ) - Len( StrTran( sStr, sPattern, "" ) ) ) / Len( sPattern )
[ ] 
[+] //testcases
	[ ] 
	[-] private testcase TestCountSubstr() appstate none
		[ ] 
		[ ] print( CountSubstr( "test string in test env", "test" ) )
		[ ] print( CountSubstr( "test string in test env", "e" ) )
		[ ] print( CountSubstr( "test string in test env", " " ) )
		[ ] print( CountSubstr( "test string in test env", "abcd" ) )
